/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package action;

/**
 *
 * @author vaio
 */
public class NewAction {
    private String username;
    private String password;
    public NewAction() {
    }
    
    public String execute() throws Exception {
        if(username.equals("admin") && password.equals("admin")){
            return "success";
        }else{
            return "error";
        }
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    
}
